class CustomException(Exception):
    """自定义异常类"""

    def __init__(self, name: str):
        self.name = name


class CreateUserException(Exception):
    """创建用户失败异常类"""

    def __init__(self, username: str,err_msg: str):
        self.username = username
        self.err_msg = err_msg
